package com.lvy.hczn.front.system.domain.transmit;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 供应商批次编号管理,供应商生成货箱时的批次和编号表，下一批次和编号在记录上累加后更新
 *
 * @author yw
 * @date 2023-05-17 14:37:19
 **/
@Data
@ApiModel(value = "供应商批次编号管理", description = "")
@TableName("supplier_box_batch_number")
@NoArgsConstructor
@AllArgsConstructor
public class SupplierBoxBatchNumber extends BaseModel<SupplierBoxBatchNumber> {

    @ApiModelProperty(value = "货箱前缀(两位大写字母)")
    private String boxPrefix;

    @ApiModelProperty(value = "当前生成的最大批次")
    private String curBatch;

    @ApiModelProperty(value = "当前货箱的初始生成的值")
    private String curNumber;

    @ApiModelProperty(value = "供应商编号")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "生成货箱编号的数量")
    @TableField(exist = false)
    public int number;

    @ApiModelProperty(value = "货箱类型：0：大箱；1：小箱")
    @TableField(exist = false)
    public Integer type;

    @ApiModelProperty(value = "货箱规格ID")
    @TableField(exist = false)
    private String goodsBoxSpecId;
}
